class Demo6_java 
{
	public static void main(String[] args) 
	{
		//int[] arr = new int[]{11,22,33,44,55};
		//int[] arr1 = {11,22,33,44,55};
		//int[] arr = new int[5];
		
		//arr = null;
		//System.out.println(arr[1]);
		int[] arr1 = {11,22,33,44,55};
		reverseArray(arr1);
		print(arr1);
	}

	public static void reverseArray(int[] arr){
		for(int i=0;i<arr.length/2;i++){
			int temp = arr[i];
			/**
				i = 0   11
				i = 1   22
			/
			System.out.println( i+"-");
			//System.out.println( arr[i]+"*");
			arr[i] = arr[arr.length-1-i];
			arr[arr.length-1-i] = temp;
		}
	}

	public static void print(int[] arr){
		for(int i=0;i<arr.length;i++){
			//System.out.println(arr[i]+"-");
		}
	}
}
